package club.hicode.daydayup.rpc.demo.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.UUID;

/**
 * 交互
 * @author Liu Chunfu
 * @date 2018-08-31 下午3:34
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Transcate {

	private String id;

	private String method;

	private Object[] args;

	private String response;

	public Transcate(String method, Object[] args) {
		this.method = method;
		this.args = args;
		this.id = UUID.randomUUID().toString();
	}
}
